<?php
namespace app\index\controller;
use think\Controller;
use app\index\model\Block;
use app\index\model\Goods;
use app\index\model\Files;
use app\index\model\Carousel;
use app\index\model\Brand;
use app\index\model\Mater;
class Index extends Logindo
{
    public function index()
    {
    	$Block =new Block;
    	$arr=$Block->get_option();
    	$title=array_keys($arr);
		$content=array_values($arr); 
		
		$Goods =new Goods;
		$Glist=$Goods->get_option();

		$Files =new Files;
		$Flist=$Files->get_option();
		
		$Carousel =new Carousel;

		$Clist=$Carousel->get_option();
		
		//劳务公司
		$Brand =new Brand;
		$Bcompany=$Brand->get_option(1);
		//劳务班组
		$Bgroup=$Brand->get_option(2);
		//专业分包
		$Bfenbao=$Brand->get_option(4);

		$Mater= new Mater;
		$cailiao=$Mater->get_option(0);
		$zulin=$Mater->get_option(1);


		$this->view->assign('brr',$title);
		$this->view->assign('content',$content);
		$this->view->assign('wuzi',$Glist);
		$this->view->assign('files',$Flist);
		$this->view->assign('carousels',$Clist);

		$this->view->assign('Bcompany',$Bcompany);
		$this->view->assign('Bgroup',$Bgroup);
		$this->view->assign('Bfenbao',$Bfenbao);
		$this->view->assign('cailiao',$cailiao);
		$this->view->assign('zulin',$zulin);

        return $this->view->fetch();
    }
    
}
